package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.UserLike;
import com.tanhua.model.vo.Counts;
import com.tanhua.model.vo.PageResult;

import java.util.List;

/**
 * @author wjs
 * @version 1.0
 * @date 2021/12/31 0031 下午 6:48
 */
public interface UserLikeApi {
    Boolean saveOrUpdate(Long userId, Long likeUserId, boolean b);

    Counts countsByUserId(Long userId);

    PageResult eachLove(Integer page, Integer pagesize, Long userId);

    PageResult love(Integer page, Integer pagesize, Long userId);

    PageResult fenLove(Integer page, Integer pagesize, Long userId);

    List<UserLike> loves(Long likeUserId);

    Boolean find(Long userId, String uid);

    void save(UserLike userLike);

    void remove(Long userId, String uid);
}
